export function deepClone(obj) {
    let clone = Array.isArray(obj) ? [] : {};
    if (obj && typeof obj == 'object') {
        for (let key in obj) {
            if (obj.hasOwnProperty(key)) {
                if (obj[key] && typeof obj[key] == 'object') {
                    clone[key] = deepClone(obj[key]);
                } else {
                    clone[key] = obj[key]
                }
            }
        }
    }
    return clone;
}
